﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynaPrecision.Miscellaneous
{
	public static class Swapper
	{
		public static void Swap<T>(ref T left, ref T right)
		{
			T temp = left;
			left = right;
			right = left;
		}
		public static void Swap<T>(IList<T> list, int i, int j)
		{
			T temp = list[i];
			list[i] = list[j];
			list[j] = temp;
		}
	}
}
